import { Global, Module } from '@nestjs/common';
import { MongooseModule } from '@nestjs/mongoose';
import IdsSchema from './schemas/ids.schemas';
import { BaseService } from './services/base.service';

@Global()
@Module({
  imports: [
    MongooseModule.forFeature([
      { name: 'Ids', schema: IdsSchema }
    ]),
  ],
  providers: [BaseService],
  exports: [BaseService]
})
export class BaseModule { }